package com.fast.develop.management.resource.vo;


import java.util.ArrayList;
import java.util.List;

/**
 * @author 莫寅
 * @createTime 2022-06-11 03:26
 * @desc：
 */
public class TreeVo<T> {

    /**节点唯一索引值，用于对指定节点进行各类操作**/
    private String id;
    /**节点标题**/
    private String title;
    /**节点字段名**/
    private String field;
    /**子节点。支持设定选项同父节点**/
    private List<TreeVo> children;
    /**点击节点弹出新窗口对应的 url。需开启 isJump 参数**/
    private String href;
    /**节点是否初始展开，默认 false**/
    private Boolean spread;
    /**节点是否初始为选中状态（如果开启复选框的话），默认 false**/
    private Boolean checked;
    /**节点是否为禁用状态。默认 false**/
    private Boolean disabled;

//    private String icon;
    private String iconSkin;

    private T data;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getField() {
        return field;
    }

    public void setField(String field) {
        this.field = field;
    }

    public List<TreeVo> getChildren() {
        return children;
    }

    public void setChildren(List<TreeVo> children) {
        this.children = children;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public Boolean getSpread() {
        return spread;
    }

    public void setSpread(Boolean spread) {
        this.spread = spread;
    }

    public Boolean getChecked() {
        return checked;
    }

    public void setChecked(Boolean checked) {
        this.checked = checked;
    }

    public Boolean getDisabled() {
        return disabled;
    }

    public void setDisabled(Boolean disabled) {
        this.disabled = disabled;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }
//
//    public String getIcon() {
//        return icon;
//    }
//
//    public void setIcon(String icon) {
//        this.icon = icon;
//    }

    public String getName(){
        return title;
    }

    public String getIconSkin() {
        return iconSkin;
    }

    public void setIconSkin(String iconSkin) {
        this.iconSkin = iconSkin;
    }
}
